package com.mall.app.dao;

import com.mall.app.bean.TbBuyer;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 买家表 Mapper 接口
 * </p>
 *
 * @author LeeSin
 * @since 2020-07-10
 */
@Mapper
@Repository
public interface TbBuyerMapper extends BaseMapper<TbBuyer> {

	TbBuyer login(@Param("username")String username);
	
	List<TbBuyer> listPage(Map<String, Object> map);

	int getCount(Map<String, Object> map);
	
	int insertBuyer(TbBuyer buyer);

	int updateBuyer(TbBuyer buyer);

	int deleteBuyer(String[] bids);

}
